package com.glela.platform.service;

import org.springframework.http.ResponseEntity;

public interface UserBankService {

	/**
	 * 获取合作银行列表
	 * 
	 * @return
	 */
	public ResponseEntity<?> getBankLst();

	/**
	 * 银行卡列表
	 * 
	 * @param userId
	 * @param page
	 * @param pageSize
	 * @return
	 */
	public ResponseEntity<?> listUserBankPage(Long userId, int page, int pageSize);

	/**
	 * 删除银行卡
	 * 
	 * @param cardId
	 * @param userId
	 * @return
	 */
	public ResponseEntity<?> removeUserBankById(Long userId, int cardId) throws Exception;

	/**
	 * 添加银行卡
	 * 
	 * @param userId
	 * @param name
	 * @param bankCard
	 * @param bankName
	 * @param bankBranchName
	 * @param idNumber 
	 * @param bankBranchId 
	 * @return
	 */
	public ResponseEntity<?> addUserBank(Long userId, String name, String bankCard, int bankId, String bankBranchName, int bankBranchId, String idNumber)
			throws Exception;

	/**
	 * 用户提现
	 * 
	 * @param userId
	 * @param money
	 * @param bankId
	 * @return
	 */
	public ResponseEntity<?> userDrawings(Long userId, int money, int bankId) throws Exception;

	/**
	 * 获取用户银行卡以及余额
	 * 
	 * @param userId
	 * @return
	 */
	public ResponseEntity<?> getUserBankAndMoney(Long userId);
	
	/**
	 * 查询支付宝账号
	 * @param userId
	 * @return
	 */
	public ResponseEntity<?> getUserBankAli(long userId);
	
}
